package main

import "fmt"

func main() {

	line := "hello,world, 北京"

	for i := 0; i < len(line); i++ {
		fmt.Printf("%c\n", line[i])
	}

	fmt.Println("--- 1")

	for _, ch := range line {
		fmt.Printf("%c\n", ch)
	}

	fmt.Println("--- 2")

	chs := []rune(line)

	for i := 0; i < len(chs); i++ {
		fmt.Printf("%c\n", chs[i])
	}

	fmt.Println("--- 3")

label1:
	for i := 1; i < 20; i++ {
		for j := 1; j < 20; j++ {
			fmt.Println(i, j)
			if j == 10 {
				break label1
			}
		}
	}
}
